#ifndef BSP_SPI_H
#define BSP_SPI_H

#include "main.h"

void SPI1Init(void);
void SPI1_DMA_Init(uint32_t tx_buf, uint32_t rx_buf, uint16_t num);
void SPI1SetSpeedAndDataSize(uint16_t Speed, uint16_t DataSize);
void SPI1_DMA_Enable(uint16_t ndtr);

#endif
